package br.com.hbt.general;


public class Batman {

	static int i = 0;
	Batman g = null;

	public void finalize() {
		i++;
	}

	public static void main(String arhs[]) {
		Batman gab1 = new Batman();
		Batman gab2 = new Batman();
		Batman gab3 = new Batman();
		gab3.g = gab1;
		gab1.g = gab2;
		gab3.g = gab2;
		gab1 = null;
		gab3 = null;
		Runtime.getRuntime().gc();
		System.out.print(i + " objects removed");
	}

}